#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import requests
from bs4 import BeautifulSoup
headers = {
        'user-agent':'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36'
    }

html = requests.get("http://python.jobbole.com/tag/%E7%88%AC%E8%99%AB/",headers)
soup = BeautifulSoup(html.text, 'html.parser')

s = soup.find_all('a',attrs={'class':'archive-title'})

urlsList = []

for x in s:
    urlsList.append(x.attrs['href'])
    print(x.get_text(),x.attrs['href'])

for y in urlsList:
    print(y)